package com.ebupt.migu.fineoperationmedia.entity;

import java.util.HashMap;

import javax.validation.constraints.NotNull;

import lombok.Data;

/**
 * @author liuyangyang@e-byte.com
 * @description: TODO
 * @date 2024/4/16 15:43
 */
@Data
public class ApiQueryBean {
    @NotNull
    public String timestamp;
    @NotNull
    public String deviceId;
    @NotNull
    public Integer point;
    public HashMap<String, String> extra;

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"timestamp\":\"")
                .append(timestamp).append('\"');
        sb.append(",\"deviceId\":\"")
                .append(deviceId).append('\"');
        sb.append(",\"point\":")
                .append(point);
        sb.append(",\"extra\":")
                .append(extra);
        sb.append('}');
        return sb.toString();
    }
}
